<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
    <title>Reference</title>
    <link rel="stylesheet" href="../../luadoc.css" type="text/css" />
	<!--meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/-->
</head>

<body>
<div id="container">

<div id="product">
	<div id="product_logo"></div>
	<div id="product_name"><big><b></b></big></div>
	<div id="product_description"></div>
</div> <!-- id="product" -->

<div id="main">

<div id="navigation">


<h1>LuaDoc</h1>
<ul>
	
	<li><a href="../../index.html">Index</a></li>
	
</ul>


<!-- Module list -->



<!-- File list -->

<h1>Files</h1>
<ul>

	<li>
		<a href="../../files/Compiler.html">Compiler.lua</a>
	</li>

	<li>
		<a href="../../files/Editor.html">Editor.lua</a>
	</li>

	<li>
		<a href="../../files/Instance.html">Instance.lua</a>
	</li>

	<li>
		<a href="../../files/Libraries.html">Libraries.lua</a>
	</li>

	<li>
		<a href="../../files/Permissions.html">Permissions.lua</a>
	</li>

	<li>
		<a href="../../files/Preprocessor.html">Preprocessor.lua</a>
	</li>

	<li>
		<a href="../../files/SFLib.html">SFLib.lua</a>
	</li>

	<li>
		<a href="../../files/libs_cl/ents.html">libs_cl/ents.lua</a>
	</li>

	<li><strong>libs_cl/screen.lua</strong></li>
	
	<li>
		<a href="../../files/libs_sh/builtins.html">libs_sh/builtins.lua</a>
	</li>

	<li>
		<a href="../../files/libs_sh/files.html">libs_sh/files.lua</a>
	</li>

	<li>
		<a href="../../files/libs_sh/find.html">libs_sh/find.lua</a>
	</li>

	<li>
		<a href="../../files/libs_sh/time.html">libs_sh/time.lua</a>
	</li>

	<li>
		<a href="../../files/libs_sh/trace.html">libs_sh/trace.lua</a>
	</li>

	<li>
		<a href="../../files/libs_sv/ents.html">libs_sv/ents.lua</a>
	</li>

	<li>
		<a href="../../files/libs_sv/wire.html">libs_sv/wire.lua</a>
	</li>

	<li>
		<a href="../../files/reload.html">reload.lua</a>
	</li>

</ul>






</div> <!-- id="navigation" -->

<div id="content">

<h1>File <code>libs_cl/screen.lua</code></h1>







<h2>Functions</h2>
<table class="function_list">

	<tr>
	<td class="name" nowrap><a href="#SF.Libraries.Local.Screen.clear">SF.Libraries.Local.Screen.clear</a>&nbsp;(r, g, b)</td>
	<td class="summary">Clears the screen.</td>
	</tr>

	<tr>
	<td class="name" nowrap><a href="#SF.Libraries.Local.Screen.drawCircle">SF.Libraries.Local.Screen.drawCircle</a>&nbsp;(x, y, r, c)</td>
	<td class="summary">Draws a circle </td>
	</tr>

	<tr>
	<td class="name" nowrap><a href="#SF.Libraries.Local.Screen.drawLine">SF.Libraries.Local.Screen.drawLine</a>&nbsp;(x1, y1, x2, y2)</td>
	<td class="summary">Draws a line </td>
	</tr>

	<tr>
	<td class="name" nowrap><a href="#SF.Libraries.Local.Screen.drawRect">SF.Libraries.Local.Screen.drawRect</a>&nbsp;(x, y, w, h)</td>
	<td class="summary">Draws a rectangle using the current color.</td>
	</tr>

	<tr>
	<td class="name" nowrap><a href="#SF.Libraries.Local.Screen.drawRectOutline">SF.Libraries.Local.Screen.drawRectOutline</a>&nbsp;(x, y, w, h)</td>
	<td class="summary">Draws a rectangle outline using the current color.</td>
	</tr>

	<tr>
	<td class="name" nowrap><a href="#SF.Libraries.Local.Screen.drawText">SF.Libraries.Local.Screen.drawText</a>&nbsp;(font, x, y, text)</td>
	<td class="summary">Draws text using a font </td>
	</tr>

	<tr>
	<td class="name" nowrap><a href="#SF.Libraries.Local.Screen.setColor">SF.Libraries.Local.Screen.setColor</a>&nbsp;(r, g, b, a)</td>
	<td class="summary">Sets the draw color </td>
	</tr>

	<tr>
	<td class="name" nowrap><a href="#SF.Libraries.Local.Screen.setTextColor">SF.Libraries.Local.Screen.setTextColor</a>&nbsp;(r, g, b, a)</td>
	<td class="summary">Sets the text color </td>
	</tr>

</table>






<br/>
<br/>




<h2><a name="functions"></a>Functions</h2>
<dl class="function">



<dt><a name="SF.Libraries.Local.Screen.clear"></a><strong>SF.Libraries.Local.Screen.clear</strong>&nbsp;(r, g, b)</dt>
<dd>
Clears the screen.


<h3>Parameters:</h3>
<ul>
	
	<li>
	  <code><em>r</em></code>: Red value or 0
	</li>
	
	<li>
	  <code><em>g</em></code>: Green value or 0
	</li>
	
	<li>
	  <code><em>b</em></code>: Blue value or 0
	</li>
	
</ul>








</dd>




<dt><a name="SF.Libraries.Local.Screen.drawCircle"></a><strong>SF.Libraries.Local.Screen.drawCircle</strong>&nbsp;(x, y, r, c)</dt>
<dd>
Draws a circle


<h3>Parameters:</h3>
<ul>
	
	<li>
	  <code><em>x</em></code>: Center x coordinate
	</li>
	
	<li>
	  <code><em>y</em></code>: Center y coordinate
	</li>
	
	<li>
	  <code><em>r</em></code>: Radius
	</li>
	
	<li>
	  <code><em>c</em></code>: Color (doesn't follow setColor...)
	</li>
	
</ul>








</dd>




<dt><a name="SF.Libraries.Local.Screen.drawLine"></a><strong>SF.Libraries.Local.Screen.drawLine</strong>&nbsp;(x1, y1, x2, y2)</dt>
<dd>
Draws a line


<h3>Parameters:</h3>
<ul>
	
	<li>
	  <code><em>x1</em></code>: X start coordinate
	</li>
	
	<li>
	  <code><em>y1</em></code>: Y start coordinate
	</li>
	
	<li>
	  <code><em>x2</em></code>: X end coordinate
	</li>
	
	<li>
	  <code><em>y2</em></code>: Y end coordinate
	</li>
	
</ul>








</dd>




<dt><a name="SF.Libraries.Local.Screen.drawRect"></a><strong>SF.Libraries.Local.Screen.drawRect</strong>&nbsp;(x, y, w, h)</dt>
<dd>
Draws a rectangle using the current color.


<h3>Parameters:</h3>
<ul>
	
	<li>
	  <code><em>x</em></code>: Bottom left corner x coordinate
	</li>
	
	<li>
	  <code><em>y</em></code>: Bottom left corner y coordinate
	</li>
	
	<li>
	  <code><em>w</em></code>: Width
	</li>
	
	<li>
	  <code><em>h</em></code>: Height
	</li>
	
</ul>








</dd>




<dt><a name="SF.Libraries.Local.Screen.drawRectOutline"></a><strong>SF.Libraries.Local.Screen.drawRectOutline</strong>&nbsp;(x, y, w, h)</dt>
<dd>
Draws a rectangle outline using the current color.


<h3>Parameters:</h3>
<ul>
	
	<li>
	  <code><em>x</em></code>: Bottom left corner x coordinate
	</li>
	
	<li>
	  <code><em>y</em></code>: Bottom left corner y coordinate
	</li>
	
	<li>
	  <code><em>w</em></code>: Width
	</li>
	
	<li>
	  <code><em>h</em></code>: Height
	</li>
	
</ul>








</dd>




<dt><a name="SF.Libraries.Local.Screen.drawText"></a><strong>SF.Libraries.Local.Screen.drawText</strong>&nbsp;(font, x, y, text)</dt>
<dd>
Draws text using a font


<h3>Parameters:</h3>
<ul>
	
	<li>
	  <code><em>font</em></code>: Font table returned by createFont
	</li>
	
	<li>
	  <code><em>x</em></code>: X coordinate
	</li>
	
	<li>
	  <code><em>y</em></code>: Y coordinate
	</li>
	
	<li>
	  <code><em>text</em></code>: Text to draw
	</li>
	
</ul>








</dd>




<dt><a name="SF.Libraries.Local.Screen.setColor"></a><strong>SF.Libraries.Local.Screen.setColor</strong>&nbsp;(r, g, b, a)</dt>
<dd>
Sets the draw color


<h3>Parameters:</h3>
<ul>
	
	<li>
	  <code><em>r</em></code>: Red value or 0
	</li>
	
	<li>
	  <code><em>g</em></code>: Green value or 0
	</li>
	
	<li>
	  <code><em>b</em></code>: Blue value or 0
	</li>
	
	<li>
	  <code><em>a</em></code>: Alpha value or 0
	</li>
	
</ul>








</dd>




<dt><a name="SF.Libraries.Local.Screen.setTextColor"></a><strong>SF.Libraries.Local.Screen.setTextColor</strong>&nbsp;(r, g, b, a)</dt>
<dd>
Sets the text color


<h3>Parameters:</h3>
<ul>
	
	<li>
	  <code><em>r</em></code>: Red value or 0
	</li>
	
	<li>
	  <code><em>g</em></code>: Green value or 0
	</li>
	
	<li>
	  <code><em>b</em></code>: Blue value or 0
	</li>
	
	<li>
	  <code><em>a</em></code>: Alpha value or 0
	</li>
	
</ul>








</dd>


</dl>







</div> <!-- id="content" -->

</div> <!-- id="main" -->

<div id="about">
	<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /></a></p>
</div> <!-- id="about" -->

</div> <!-- id="container" -->	
</body>
</html>
